package cn.edu.ctbu.datajpt18.service;


import cn.edu.ctbu.datajpt18.domain.Student;
import cn.edu.ctbu.datajpt18.repository.StudentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentService {
    @Autowired

    private StudentRepository studentRepository;
    public List<Student> findAll() {
        return studentRepository.findAll();

    }
}
